package com.itqf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Note {
    private Integer usernoteid;

    private String userid;

    private String notecontent;

    private String notetitle;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date notetime;

    public Integer getUsernoteid() {
        return usernoteid;
    }

    public void setUsernoteid(Integer usernoteid) {
        this.usernoteid = usernoteid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getNotecontent() {
        return notecontent;
    }

    public void setNotecontent(String notecontent) {
        this.notecontent = notecontent == null ? null : notecontent.trim();
    }

    public String getNotetitle() {
        return notetitle;
    }

    public void setNotetitle(String notetitle) {
        this.notetitle = notetitle == null ? null : notetitle.trim();
    }

    public Date getNotetime() {
        return notetime;
    }

    public void setNotetime(Date notetime) {
        this.notetime = notetime;
    }
}